package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 库存表
 * </p>
 *
 * @author 小飞
 * @since 2019-06-28
 */
@TableName("inventory_order")
public class InventoryOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 数量
     */
    @TableField("amount")
    private Long amount;

    /**
     * 批次
     */
    @TableField("batch_number")
    private String batchNumber;

    /**
     * 仓库id
     */
    @TableField("warhouse_id")
    private Long warhouseId;

    /**
     * 序列号
     */
    @TableField("serial_num")
    private String serialNum;

    /**
     * 产品编号id
     */
    @TableField("product_order_id")
    private Long productOrderId;

    public String getSerialNumOut() {
        return serialNumOut;
    }

    public void setSerialNumOut(String serialNumOut) {
        this.serialNumOut = serialNumOut;
    }

    /**
     * 状态值1.未出库 2.已出库
     */
    @TableField("serial_num_out")
    private String  serialNumOut;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public String getBatchNumber() {
        return batchNumber;
    }

    public void setBatchNumber(String batchNumber) {
        this.batchNumber = batchNumber;
    }

    public Long getWarhouseId() {
        return warhouseId;
    }

    public void setWarhouseId(Long warhouseId) {
        this.warhouseId = warhouseId;
    }

    public String getSerialNum() {
        return serialNum;
    }

    public void setSerialNum(String serialNum) {
        this.serialNum = serialNum;
    }

    public Long getProductOrderId() {
        return productOrderId;
    }

    public void setProductOrderId(Long productOrderId) {
        this.productOrderId = productOrderId;
    }

    @Override
    public String toString() {
        return "InventoryOrder{" +
        "id=" + id +
        ", amount=" + amount +
        ", batchNumber=" + batchNumber +
        ", warhouseId=" + warhouseId +
        ", serialNum=" + serialNum +
        ", productOrderId=" + productOrderId +
        "}";
    }
}
